<?php

namespace App\Admin\Repositories;

use App\Models\WxPlate as Model;
use Dcat\Admin\Repositories\EloquentRepository;

class WxPlate extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;


    public function optionsLists()
    {
        $plate = (new $this->eloquentClass())->get();
//        dump($plate);exit();
        $arr = [];
        foreach ($plate as $v){
            $arr[$v['id']] = $v['plate_name'];
//            dump($v);
        }
        return $arr;
    }
}
